import { IQueryList, IResponse } from "@/api/index.type";
import { http } from "@/utils/request";
/**
 * @description 查询列表
 */
export const remoteList = (params: IQueryList) => {
    return http.get<IResponse>(`/sys/dept/queryDeptement`, params)
};

/**
 * 添加
 */
export const addInfo = (data: any) => {
    return http.post<IResponse>(`/sys/dept/insert`, data)
};

/**
 * 更新
 */
export const updateInfo = (data: any) => {
    return http.post<IResponse>(`/sys/dept/update`, data)
};

/**
 * 删除
 */
export const deleteInfo = (data: object | undefined) => {
    return http.post<IResponse>(`/sys/dept/delete`, data)
}

export default {
    remoteList
}